# @Version:1.0
# @Author：green-citrus

age = 80
score = 77.5
gender = "男"
name = "贾宝玉"

# %操作符输出，指定变量的类型
print("个人信息：%s %d %s %.2f" % (name, age, gender, score))

# format()函数，不用考虑变量的类型
print("个人信息：{} {} {}".format(name, age, gender))

# f-strings
print(f"个人信息：{name, age, gender, score}")
